package com.itheima.day13.thread.test17;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> abq = new ArrayBlockingQueue<>(1);

        Foodie f = new Foodie(abq);
        Cooker c = new Cooker(abq);
        f.start();
        c.start();
    }
}
